Skip to content

Conversation

joelte
Copy link
Member

@joelte joelte commented Nov 17, 2026

  • Added pagination to My Ratings and image resize handling for game covers
  • Added a "remove rating" flow with a save alert/timeout on rating actions
  • Fixed year filter edge case (yearTo resets when yearFrom is a later year), decimal rounding on scores, and several UI/accessibility bugs (ARIA labels, lazy-loaded images, header contrast, star sizing on mobile, details page reload, truncated text)
  • Restructured several components (Header, GamesGrid, GameListItem, Layout) out of per-component folders and refactored useIsMobile
  • Added Vitest and test coverage for GameList, Header, Layout, StarRating, and Toolbar
  • Updated AI usage docs and server README

Test plan

  • npm run test in frontend/ passes
  • Verify My Ratings pagination and remove-rating flow in the browser
  • Verify image resizing on game covers and game details page
  • Spot-check year/tag filters and star rating display on mobile

ayseza and others added 30 commits November 8, 2026 13:07
Game now displays in correct size even though there is only (max - n) to display

#25
New fix made the previous change useless, so I changed it back

#25
Rather than just showing a dynamic amount varying on screen size, we now display a fixed amount of 20 games per page. This also suits feedback from user who wanted more games per page. Also a good solution for mobile to save jumping from page to page

#25
In cases of text overflow in titles and tags, the text will now truncate

#73
Min + max has been set for yearFrom and yearTo inputs, but only works for the arrows! Needs further work...
Changed the score number from "out of 10" to "out of 5" with `score/2` as the showing score. This is to be consistent with the amount of stars. This will hopefully fix the problem with score showing as a date as well

#69
Added array with options for years for the "Year" Select objects in Toolbar.tsx
`yearFrom` and `yearTo` are now changeable via Select object rather than being input objects. `yearTo` only displays valid years (after `yearFrom`). Known bug: when changing `yearFrom` to a year ealier than `yearTo` and applying filter, `yearTo` changes to `Year`, but gives result "No games match these filters."
Implemented a x button that lets a user delete their rating from the gamedetails page.
Average scores now round to nearest 2 decimals when relevant in the UI.
Updated ai-usage.md with info ralating to delivery 2 and 3
Round displayed score to 2 decimals and update AI usage docs
feat: Add remove rating button
Fixes problems with #60 and #81 and eliminates problems when setting release year filters

#60 #81
Halvor Thallaug Fagerli and others added 18 commits November 15, 2026 14:41
Changed the way games with missing tags or release year are presented. Now shows "N/A" in grey and italic to emphasize that there are no tags or release year to the game

#74
Installed vitest to frontend, and added "test" script
feat: Added text to missing year or tags
Created the setup for and implementation of tests for GameList, Header, Layout, StarRating and Toolbar. Added dev dependencies: @testing-library/react, @testing-library/jest-dom, @testing-library/user-event, jsdom
Extract the page counter and chevron arrows from Toolbar into a
shared Pagination component, then reuse it on the My Ratings page
so rated games are paged the same way as the main grid.
Image resize, accessibility, and title
test: Add Vitest setup and component tests for Header, Layout, GameListItem, StarRating, and Toolbar
Updatet GameListItem and Header tests to match the updates for delivery 4.
fix: Update Tests to match frontend
@joelte joelte requested a review from a team as a code owner November 17, 2026 18:48
@ayseza ayseza merged commit 341037b into main Nov 18, 2026
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants